Endpoint-to-endpoint communications status monitoring

ABSTRACT

Communication ability between nodes in a cluster-based computer system is tracked to inform applications executing on the nodes of the existence and quality of the endpoint-to-endpoint communications available between the nodes. Communications between a node and other nodes are tracked, and a database records the communication ability between the node and the other nodes for each link between the nodes. The tracking and recording are repeated at the other nodes. A registration by an application executing at a particular one of the nodes to receive notifications of changes in the communication ability with another node over a particular link (or in general) will cause notification of the application when the link status changes.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present U.S. patent application is related to co-pending U.S. patent application Ser. No. 12/959,568 entitled “DYNAMIC RATE HEARTBEATING FOR INTER-NODE STATUS UPDATING Ser. No. 12/959,581 entitled” INTER-NODE COMMUNICATION SCHEME FOR NODE STATUS SHARING″ filed contemporaneously herewith and having at least one common inventor and assigned to the same Assignee, the disclosures of which are incorporated herein by reference.

BACKGROUND

1. Field of the Invention

The present invention is related to communications in distributed computing systems, and more specifically to endpoint-to-endpoint monitoring of communication status in node-based computing schemes.

2. Description of Related Art

In large-scale distributed computer systems, such as those using distributed software models to perform tasks, multiple nodes provide independent execution of sub-tasks. In order to keep such a system operational, and further, to provide for proper operation of distributed applications that use the multiple nodes to perform various tasks, the ability to communicate with other nodes is tracked. In particular, the operation status of hardware interfaces that connect the nodes is monitored and used to determine whether other nodes in the system can be communicated with. Further node status is monitored to ensure that nodes that are to be used to perform tasks are operational.

Communications and status monitoring is typically centralized, with a monitoring application providing information about node and interface status. The monitoring application may use distributed agents to perform the monitoring on each node.

BRIEF SUMMARY

The invention provides a communications monitoring system that is embodied in a computer program product and computer systems. The computer program product and computer system provide information about endpoint-to-endpoint communications ability within a node-based distributed processing system.

Communication status among a cluster of nodes of a computer system is determined by tracking communications received from other nodes within the cluster of nodes at a node, recording a result of the tracking to provide a database of communication ability between the node and the other nodes and then repeating the tracking and recording at the other nodes in the cluster of nodes. An application registered to receive status changes in a communications link to another node of interest is notified when the ability of the application to communicate over the link changes, along with information about the status of the link.

The computer program product and computer system may further generate traffic between the nodes in order to increase the traffic available for the tracking, and may track only generated traffic, or a combination of ordinary and generated traffic. The information provided to the application may include the particular hardware interface of the link, the type of the hardware interface, and an indication of the time at which the last transmission from the other node was received.

The foregoing and other objectives, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiments of the invention, as illustrated in the accompanying drawings.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING

The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives, and advantages thereof, will best be understood by reference to the following detailed description of the invention when read in conjunction with the accompanying Figures, wherein like reference numerals indicate like components, and:

FIG. 1 is a block diagram of a distributed computer system in which techniques according to an embodiment of the present invention are practiced.

FIG. 2 is a pictorial diagram depicting communication between nodes of a computer system in accordance with an embodiment of the present invention.

FIG. 3 is a block diagram depicting a communications monitoring architecture in a computer system in accordance with an embodiment of the present invention.

FIG. 4 is a flowchart of a method in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION

The present invention encompasses techniques for monitoring communication status in clusters of nodes within distributed computing systems. In particular, embodiments of the invention provide for maintaining a database, such as a table, of links between nodes in a cluster and a status of the links. Applications can register for notification of when the status of a link changes, which can occur due to loss of configuration or routing information for the link, a process deadlocking on a node, a hardware failure, or another cause that prevents communications resources between the nodes from being accessible. Information about the status change is also provided to the application, either by polling or as part of the event notification message. The information may include the last time since a packet was received over a link, the hardware interface of the link, the address and port number (or other network specifier) of the remote endpoint, the sequence number of the last packet received, and/or other useful information about the link status. Traffic may be generated to ensure that continual communications are available for the tracking, so that a link is not marked as down when the lack of communications is merely due to a lack of particular traffic from the link during a given time interval. The tracking may track only generated traffic, only regular traffic, or all traffic across the links.

Referring now to FIG. 1, a distributed computer system in accordance with an embodiment of the present invention is shown. A first physical processing node 10A includes a processor core 12 coupled to a memory 14 that stores program instructions for execution by processor 12. The program instructions include program instructions forming computer program products in accordance with embodiments of the invention that provide node status information from tracking of communications between either physical processing nodes 10A-10D, virtual processing nodes partitioned within the depicted computer system as will be described in further detail below, or both. Processing node 10A also includes a network interface (NWI) 16 that couples processing node 10A to a wired, wireless or hybrid network, which may be a standardized network such as Ethernet, or a proprietary network or interconnect bus. Other processing nodes 10B-10D are of identical construction in the exemplary embodiment, but embodiments of the invention may be practiced in asymmetric distributed systems having nodes with differing features. Although only four compute nodes 10A-10D are illustrated, a distributed computer system in accordance with an embodiment of the present invention will generally include a large number of compute nodes connected via one or more networks. The distributed computer system of FIG. 1 also includes other resources such as I/O devices 19, including graphical display devices, printers, scanners, keyboards, mice, which may be coupled to the network or one of nodes 10A-10D via workstation computers that provide a user interface to administrative personnel and other users. Nodes 10A-10D are also coupled to storage devices 18, for storing and retrieving data and program instructions, such as storing computer program products in accordance with an embodiment of the invention.

Referring now to FIG. 2, communication between multiple nodes 20 of the distributed computer system of FIG. 1 is shown. As mentioned above, nodes 20 may correspond exactly on a one-to-one basis with processing nodes 10A-10D (and other nodes) of FIG. 1, or nodes 20 may be partitioned in a different manner as virtual processing nodes. For example, a single node 20 may have exclusive use of multiple processing nodes, e.g. nodes 10A-10B, and result in a system having a greater number of virtual nodes than processing nodes, or alternatively, multiple nodes 20 may be implemented on a single processing node, e.g., node 10A. In the present invention, each of nodes 20 represents at least one operating system image and one or more applications executing within the operating system image. In general, the entire system as depicted may execute a single application, but sub-tasks within the application are apportioned to the various nodes 20, which may be identical sub-tasks or different sub-tasks. The present invention concerns node communications monitoring and tracking of link status for links between nodes within the computer system of FIG. 1, messages are communicated between nodes 20 and the receipt of the messages is observed and recorded at each node. Operational messages are passed between nodes 20, including data and program code transmissions, and messages as needed to support features of particular embodiments of the present invention, such as communication of node status to other nodes. The messaging also may include push traffic in general that is used to ensure that node health and communication status is continually monitored. Nodes are generally arranged in a cluster, which is a group of virtual or physical processing nodes organized to perform a particular task or group of tasks, e.g., for a particular customer. As illustrated, communication between nodes in a cluster may be accomplished by direct node to node communications 22 or by next-neighbor communications 24 in which nodes 20 pass along messages to other nodes 20. Another alternative is to use a central facility for inter-node communication. However, since the illustrated embodiment provides a de-centralized communications monitoring system, it is generally preferable not to use a central exchange for messaging.

Referring now to FIG. 3, a communications monitoring architecture in accordance with an embodiment of the invention is shown. An application 30 within a processing node 20A communicates with other processing nodes 20B and 20C via a software and hardware network stack and channel arrangement that include: an operating system network stack NS, interface device drivers DD1 and DD2 and physical interfaces managed by device drivers DD1 and DD2, including local area networks LAN1 and LAN2, as well as storage area network SAN. Application 30 communicates with other applications in nodes 20B and 20C via routed links using address port pairs in the illustrative example. A communications monitor 34 receives communications logging information from network stack NS and maintains a database in the form of a table 32, that records the information illustrated below in exemplary Table I, which provides an example of a database in accordance with an embodiment of the invention that may be used as a structure for table 32.

TABLE I Remote Physical Interface Link Mean Var Node Interface Type address: port Status Timestamp Seq # ΔT ΔT 3 0 LAN addr, port UP 0100345 ms 2304 3.2 ms 1 ms 2 1 LAN addr2, port2 UP 0101288 ms 789 2.1 ms 0.7 ms   2 0 SAN addr1, port1 DOWN 0325478 ms 242  10 ms 2 ms The link to Remote Node is uniquely identified the Physical Interface number, and the Link address: port number. The interface type is supplied so that application can select suitable links and/or identify an expected link from the table by its type. Information about the quality and status of the link are provided in the form of the elapsed time since the last packet, the sequence number of the last packet, the mean time between transmissions and the variance of the time between transmissions. The link status, which is either up or down, is determined by communications monitor 34, which notifies application 30 if the UP/DOWN status changes if application 30 has registered to receive communication status events for the particular interface having a status change. Other nodes 20B and 20C contain their own instances of a communications monitor and other features as depicted in node 20A, that provide notification to local applications executing within nodes 20B and 20C.

In the depicted embodiment, the communications monitored to populate table 32 are all of the communications passing through network stack NS for the listed communications links. The communications may be ordinary communications passing data and messages in performance of the tasks executed by nodes 20A-20C and other nodes, or extra communications generated by a traffic generator 36 that ensures that enough communications are passing between node 20A and all of the other nodes, so that each other node receives regular communications. Communications traffic at the node may be observed and used to adjust the rate at which transmissions are generated by traffic generator 36. Details of such a technique are disclosed in above-incorporated U.S. Patent Application “DYNAMIC RATE HEARTBEATING FOR INTER-NODE STATUS UPDATING”, in which statistics of overall communications frequency from the nodes in the cluster are used to adapt the heartbeat rate at which the traffic is generated. Further, the statistics can also be used to adjust the threshold values used to determine link up/link down status, which represent the permissible elapsed time since the last packet was received before the link is considered “down.” Similarly, the link status “up” threshold can also be adjusted based on the determined communications frequency statistics. Further, the status of other nodes in the system, which may be used to further set a “down” status of the links to nodes reported as “down”, may be reported in the generated traffic. For example, traffic generator 36 may generate traffic that reports information stored in table 32 to other nodes. Additionally, communications monitor 34 may maintain a separate table containing status of all other nodes for which information is received from the generated traffic. Details of such a gossiping scheme are disclosed in above-incorporated U.S. Patent Application “INTER-NODE COMMUNICATION SCHEME FOR NODE STATUS SHARING.”

Referring now to FIG. 4, a node communications monitoring method in accordance with an embodiment of the present invention is illustrated. The method receives communications from other nodes (step 50) and the interface, address, port and node ID are logged in table 32, and the timestamp entry is updated (step 51). If traffic from other nodes is low (decision 52) additional gossip messages may be generated to nodes that have not communicated recently (step 53) or the traffic may be increased in general. If the elapsed time between transmissions for an entry exceeds a threshold and the link status is UP (decision 54) then the link is marked as DOWN (step 55) and applications monitoring the link are notified (step 56). If a new communication is received for a link and the link status is DOWN (decision 57) then the link is marked as UP (step 58) and applications monitoring the link are notified (step 59). Until the system is shut down or the scheme is terminated (decision 60), the process of steps 50-59 is repeated.

As noted above, the present invention may be embodied as a system, method, and/or a computer program product. A computer program product may be embodied in firmware, an image in system memory or another memory/cache, stored on a fixed or re-writable media such as an optical disc having computer-readable code stored thereon. Any combination of one or more computer readable medium(s) may be used to store the program instructions in accordance with an embodiment of the invention. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

In the context of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages.

While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing and other changes in form and details may be made therein without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A computer system comprising a processing cluster including a plurality of physical or virtual processing nodes, the computer system comprising at least one processor for executing program instructions and at least one memory coupled to the processor for executing the program instructions, wherein the program instructions are program instructions for determining communication status among a cluster of the physical or virtual processing nodes, the program instructions comprising program instructions for: at a node within the cluster of nodes, tracking communications received from other nodes within the cluster of nodes; recording a result of the tracking to provide a database of communication ability between the node and the other nodes; repeating the tracking and recording at the other nodes in the cluster of nodes to generate additional databases of communication ability at corresponding ones of the other nodes that track the ability of the corresponding node to communicate with remaining nodes in the cluster; at a particular one of the nodes, receiving a registration request from an application executing at the particular one of the nodes to receive information indicative of the ability of the application to communicate with another specified node within the cluster of nodes; and responsive to receiving the registration request, subsequently providing notifications to the application if the ability to communicate with the another specified node changes, wherein the notifications contain information indicative of the ability of the application to communicate with the another specified node.
 2. The computer system of claim 1, wherein the program instructions for tracking track ordinary communications among the cluster of nodes.
 3. The computer system of claim 2, further comprising program instructions for generating traffic among the cluster of nodes in order to increase the amount of information available to the tracking, and wherein the program instructions for tracking track both the generated traffic and the ordinary communications.
 4. The computer system of claim 1, further comprising program instructions for generating traffic among the cluster of nodes in order to increase the amount of information available to the tracking, and wherein the program instructions for tracking track only the generated traffic.
 5. The computer system of claim 1, wherein the program instructions for recording further record an indication of one or more hardware interfaces over which the tracked communications occur for the corresponding other nodes, and wherein the program instructions for notifying further provide the indication of the one or more hardware interfaces to the application as part of the information indicative of the ability of the application to communicate with the another specified node.
 6. The computer system of claim 5, wherein the program instructions for recording further record a type of the hardware interfaces over which the tracked communications occur, and wherein the program instructions for notifying further provide the type of the one or more hardware interfaces to the application as part of the information indicative of the ability of the application to communicate with the another specified node.
 7. The computer system of claim 1, wherein the program instructions for recording further record an indication of time at which the tracked communications last occurred for the corresponding other nodes, and wherein the program instructions for notifying further provide the indication of the time that the tracked communication last occurred from the another node as part of the information indicative of the ability of the application to communicate with the another specified node.
 8. A computer program product comprising a non-transitory computer-readable storage device storing program instructions for execution within a computer system, the computer system comprising a processing cluster including a plurality of physical or virtual processing modes, wherein the program instructions are program instructions for determining communication status among a cluster of the physical or virtual processing nodes, the program instructions comprising program instructions for: at a node within the cluster of nodes, tracking communications received from other nodes within the cluster of nodes; recording a result of the tracking to provide a database of communication ability between the node and the other nodes; repeating the tracking and recording at the other nodes in the cluster of nodes to generate additional databases of communication ability at corresponding ones of the other nodes that track the ability of the corresponding node to communicate with remaining nodes in the cluster; at a particular one of the nodes, receiving a registration request from an application executing at the particular one of the nodes to receive information indicative of the ability of the application to communicate with another specified node within the cluster of nodes; and responsive to receiving the registration request, subsequently providing notifications to the application if the ability to communicate with the another specified node changes, wherein the notifications contain information indicative of the ability of the application to communicate with the another specified node.
 9. The computer program product of claim 8, wherein the program instructions for tracking track ordinary communications among the cluster of nodes.
 10. The computer program product of claim 9, further comprising program instructions for generating traffic among the cluster of nodes in order to increase the amount of information available to the tracking, and wherein the program instructions for tracking track both the generated traffic and the ordinary communications.
 11. The computer program product of claim 8, further comprising program instructions for generating traffic among the cluster of nodes in order to increase the amount of information available to the tracking, and wherein the program instructions for tracking track only the generated traffic.
 12. The computer program product of claim 8, wherein the program instructions for recording further record an indication of one or more hardware interfaces over which the tracked communications occur for the corresponding other nodes, and wherein the program instructions for notifying further provide the indication of the one or more hardware interfaces to the application as part of the information indicative of the ability of the application to communicate with the another specified node.
 13. The computer program product of claim 12, wherein the program instructions for recording further record a type of the hardware interfaces over which the tracked communications occur, and wherein the program instructions for notifying further provide the type of the one or more hardware interfaces to the application as part of the information indicative of the ability of the application to communicate with the another specified node.
 14. The computer program product of claim 8, wherein the program instructions for recording further record an indication of time at which the tracked communications last occurred for the corresponding other nodes, and wherein the program instructions for notifying further provide the indication of the time that the tracked communication last occurred from the another node as part of the information indicative of the ability of the application to communicate with the another specified node. 